home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / vol7n3.arc / RUN.DOC < prev   
Text File  |  1988-01-08  |  2KB  |  51 lines

  1.  
  2. RUN
  3. Command
  4.  
  5. Michael J. Mefford                 1988 No. 2 (Utilities)
  6.  
  7.  
  8. Purpose:    Executes .COM, .EXE, or .BAT files from any disk directory
  9. without requiring changing directories or specifying a path to the file.
  10.  
  11. Format:    RUN [/C|/S][d:][directory]filename [args]
  12.  
  13. Remarks:    Unless the optional directory parameter is specified, RUN
  14. defaults to a diskwide search to find the executable filename.  Any additional
  15. arguments (args) that would normally be specified on the DOS command line may
  16. be added to the filename that RUN is called upon to execute.  A drive
  17. specifier (d:) must be used if the file to be run is not on the current drive. 
  18. During its search, any keypress with abort the operation of RUN.COM.
  19.  
  20.     RUN can either operate from the current directory (its default mode,
  21. designated by the optional /S switch) or it can change to the directory (/C)
  22. in which it finds the desired program before executing it.  The /C option is
  23. required by  programs such as WordStar, which can find their overlay files
  24. only when loaded from within the directory in which they are stored.  The /C
  25. option is also required to run .BAT files under DOS 2.x (see Note below).
  26.     
  27.     Note:  RUN overcomes the inability of DOS 2.x to handle .COM and .EXE
  28. files that are prefixed with a path.  Batch files under DOS 2.x, however,
  29. still require RUN's /C option.  If desired, the /C option can be made the RUN
  30. default mode, with /S as its selectable alternative.  To make the change, put
  31. a copy of RUN in the same directory with DEBUG.COM, and enter the following
  32. commands:
  33.  
  34.  
  35. DEBUG RUN.COM
  36. E 15B 1
  37. E 1E8 "C"
  38. W
  39. Q
  40.  
  41.     If you later upgrade your version of DOS and wish to reverse the
  42. process, use the same procedure with the following commands:
  43.  
  44.  
  45. DEBUG RUN.COM
  46. E 15B 0
  47. E 1E8 "S"
  48. W
  49. Q
  50.  
  51. «MDBO»«MDNM»